package com.wrs.examsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 王荣升
 * @since 2024-05-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Topic对象", description="")
public class Topic implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "试题主键")
    @TableId(value = "topic_id", type = IdType.AUTO)
    private Integer topicId;
    @TableField("test_id")
    private Integer testId;

    @ApiModelProperty(value = "0为单选，1为多选，2为简答")
    private Integer topicType;

    @ApiModelProperty(value = "当前试题位于试卷的第几题")
    private Integer topicNumber;

    @ApiModelProperty(value = "试题题目")
    private String topicName;

    @ApiModelProperty(value = "题目选项")
    @TableField("topic_options")
    private String topicOptions;

    @ApiModelProperty(value = "单选和多选答案")
    private String topicAnswer;

    @ApiModelProperty(value = "题目分值")
    private Integer topicMark;

    @TableLogic
    private Integer isDelete;


}
